package msz.text;

import msz.dao.ItemCategoryMapper;
import msz.domain.ItemCategory;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import java.util.List;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:ApplicationContext.xml")

public class text {
    @Autowired
    ItemCategoryMapper itemCategoryMapper;
    @Test
    public void testFindAll(){
        List<ItemCategory> all = itemCategoryMapper.findAllAdByPage();
        System.out.println(all);

    }


}
